package com.haima.ziliao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.haima.ziliao.domain.PCdkeys;
import com.haima.ziliao.mapper.PCdkeysMapper;
import com.haima.ziliao.service.IPCdkeysService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 兑换码Service业务层处理
 * 
 * @author hima
 * @date 2025-05-19
 */
@Service
public class PCdkeysServiceImpl extends ServiceImpl<PCdkeysMapper, PCdkeys> implements IPCdkeysService
{
    @Autowired
    private PCdkeysMapper pCdkeysMapper;

    /**
     * 查询兑换码
     * 
     * @param id 兑换码主键
     * @return 兑换码
     */
    @Override
    public PCdkeys selectPCdkeysById(Long id)
    {
        return pCdkeysMapper.selectPCdkeysById(id);
    }

    /**
     * 查询兑换码列表
     * 
     * @param pCdkeys 兑换码
     * @return 兑换码
     */
    @Override
    public List<PCdkeys> selectPCdkeysList(PCdkeys pCdkeys)
    {
        return pCdkeysMapper.selectPCdkeysList(pCdkeys);
    }

    /**
     * 新增兑换码
     * 
     * @param pCdkeys 兑换码
     * @return 结果
     */
    @Override
    public int insertPCdkeys(PCdkeys pCdkeys)
    {
        return pCdkeysMapper.insertPCdkeys(pCdkeys);
    }

    /**
     * 修改兑换码
     * 
     * @param pCdkeys 兑换码
     * @return 结果
     */
    @Override
    public int updatePCdkeys(PCdkeys pCdkeys)
    {
        return pCdkeysMapper.updatePCdkeys(pCdkeys);
    }

    /**
     * 批量删除兑换码
     * 
     * @param ids 需要删除的兑换码主键
     * @return 结果
     */
    @Override
    public int deletePCdkeysByIds(Long[] ids)
    {
        return pCdkeysMapper.deletePCdkeysByIds(ids);
    }

    /**
     * 删除兑换码信息
     * 
     * @param id 兑换码主键
     * @return 结果
     */
    @Override
    public int deletePCdkeysById(Long id)
    {
        return pCdkeysMapper.deletePCdkeysById(id);
    }
}
